const vscode = require('vscode');

/**
 * 当插件被激活时调用
 * @param {vscode.ExtensionContext} context
 */
function activate(context) {
    // 注册命令
    let disposable = vscode.commands.registerCommand('commit-ai.helloWorld', function () {
        // 显示消息
        vscode.window.showInformationMessage('Hello Commit AI!');
    });

    context.subscriptions.push(disposable);
}

function deactivate() {
    console.log('销毁了？')
}

module.exports = {
    activate,
    deactivate
}
